package com.example.todolist.service;

import com.example.todolist.dto.sys.EditUserInfoDTO;
import com.example.todolist.model.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.todolist.model.TeamFarDO;
import com.example.todolist.response.BaseResponse;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author admin
 * @since 2022-02-24
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 根据openid获取对应的用户
     * @param openId
     * @return
     */
    SysUser selectByOpenId(String openId);

    /**
     * 获取用户信息
     * @return
     */
    BaseResponse getUserInfo();

    /**
     * 编辑用户信息
     * @param editUserInfoDTO
     * @return
     */
    BaseResponse editUserInfo(EditUserInfoDTO editUserInfoDTO);

    SysUser selectByOpenID(TeamFarDO teamFarDO);


    String selectOpenIDByUID(String uid);

}
